<%@ page language="java" pageEncoding="UTF-8"%>
<%@ include file="/commons/jsp/taglibs.jsp"%>
<%@taglib uri="http://www.framework.com/taglib/tree" prefix="tree"%>

<style type="text/css">
 .lg{width:50%;}

</style>
<form name="addDataForm" id="addNavDataForm" method="post" action="${ctx}/business/navmanage/save">
	<input type="hidden" name="id" value="${nav.id}"/>
	<input type="hidden" name="createTime" value="${nav.createTime}"/>
	<input type="hidden" name="createrId" value="${nav.createrId}"/>
	<input type="hidden" name="createrName" value="${nav.createrName}"/>
	<table class="infoTable">
		<tbody>
		<tr>
			<th align="right" width="10%">标题名称</th>
			 <td><input name="name" class="easyui-validatebox"  value="${nav.name}" data-options="required:true" maxlength="50"/>
			</td>	
		   
		<th align="right" width="10%">排序</th>
			 <td><input name="disSort" class="easyui-validatebox"  value="${nav.disSort}" data-options="validType:['number']" maxlength="11"/>
			</td>	
		</tr>
		<tr>
			<th align="right" width="10%">导航URL</th>
			<td colspan="3"><input name="href" class="easyui-validatebox" size="60"  value="${nav.href}" maxlength="80"/>
			</td>	
		</tr>
		
		<tr>
		  	
			 <th align="right" width="10%">上级导航</th>
			<td colspan="3"><input name="pname" class="easyui-validatebox lg" readonly="readonly" id="pname"  value="${nav.pname}" data-options="required:true" maxlength="50"/>
		    <input type="hidden" name="pid" id="navPid" class="easyui-validatebox" size="30" value="${nav.pid}" data-options="required:true" maxlength="50"/>
			<span id="pModel" style="width: 100px;height: 100px;"><a href="javascript:void(0);" onclick="selectParentNav()"><img src="${ctx}/commons/themes/icons/icon5.png" border="0" title="上级导航"/></a></span>
			</td>
		</tr>
		<tr>
			<th align="right" width="10%">所在位置</th>
			<td>
			  <select name="position" class="easyui-combobox" style="width:80px;">
			     <option value="上">上</option>
			      <option value="中">中</option>
			       <option value="下">下</option>
			  </select>
			</td>
				<th align="right" width="10%">是否是新打开窗口</th>
			<td>
               <select name="isNewWin" class="easyui-combobox" style="width:80px;">
			     <option value="0" checked="checked">是</option>      
			     <option value="1">否</option>
			  </select>
			</td>
		</tr>
		</tbody>
	</table>
	<tree:navTree ctx="${ctx}" navIds="navPid" navNames="pname" selectMethod="single" />
</form>


<script type="text/javascript">
	function selectParentNav(){
		selnavPidNavTree($('#navPid').val());
		$('#navPidNavTreeDialog').dialog('open');
	}
</script>

